<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">   
    <title>人员列表</title>
  </head>
  
  <body>
    <c:forEach items="${userlist}" var="user" varStatus="vs">  
        <tr>          
             <td>  
                <s:property value="#vs.index+1"/>  
             </td>  
             <td align = "center">${user.id}</td>  
             <td align = "center">${user.username}</td>  
             <td align = "center">${user.password}</td>  
         </tr>  
</c:forEach>  
  </body>
</html>
